<?php
/**
 * Created by PhpStorm.
 * User: cephei
 * Date: 12/27/15
 * Time: 10:32 PM
 */

namespace Plugins\CGWSign;

use Core\PluginContainer;

class Register_CGWSign{
    public function register(){
        PluginContainer::getInstance()->bind('cgwsign',function(){
            return new Plugin_CGWSign();
        });
    }
    public function install(\Closure $callback){
//        $db = PluginContainer::getInstance()->singletonMake('database');
//        $sql = file_get_contents(ROOT_PATH."/Plugins/Cron/cron.sql");
//        $db->exec($sql);
        $config = new \stdClass();
        $config->name = 'cgwsign';
        $config->class = 'Plugins\\CGWSign\\Register_CGWSign';
        $config->enable = 1;
        $callback($config);
    }
}